﻿using System;
using System.Text;
using System.Xml;

namespace IAM.Interface.Common.XMLResolution
{
    /// <summary>
    /// xml 解析 打包
    /// </summary>
    public abstract class AbstractXMLResolution
    {
        #region 属性
        protected XmlDocument _xmldocument = null;
        protected string _xmlinfo = "";
        /// <summary>
        /// xml文档
        /// </summary>
        public XmlDocument XmlDocument
        {
            get
            {
                return _xmldocument;
            }
            set
            {
                _xmldocument = value;
            }
        }
        /// <summary>
        /// 对象的xml主体信息
        /// </summary>
        public string XmlInfo
        {
            get
            {
                return _xmlinfo;
            }
            set
            {
                _xmlinfo=value;
            }
        }
        #endregion
        #region 获取当前结点
        /// <summary>
        /// 获取当前结点
        /// </summary>
        /// <returns></returns>
        public virtual XmlNode GetCurrentNode()
        {
            return null;
        }
        #endregion
        #region 拼完整的信息包
        /// <summary>
        /// 拼完整的信息包
        /// </summary>
        /// <returns></returns>
        public virtual string GetWholeXML()
        {
            return "";
        }
        #endregion
    }
}
